load("//bazel:export_header.bzl", "generate_dummy_export_header")

generate_dummy_export_header(
    name = "export_header",
    basename = "PROMETHEUS_CPP_CORE",
    header = "include/prometheus/detail/core_export.h",
)

cc_library(
    name = "core",
    srcs = glob([
        "src/**/*.cc",
        "src/**/*.h",
    ]),
    hdrs = glob(
        ["include/**/*.h"],
    ) + [":export_header"],
    strip_include_prefix = "include",
    visibility = ["//visibility:public"],
)
